package com.beaven.imserver.net.bean.card;

import com.beaven.imserver.net.bean.db.Category;
import com.google.gson.annotations.Expose;
import java.time.LocalDateTime;

/**
 * author: Beaven
 * time: 2017/5/22 19:08
 */
public class CategoryCard {
  @Expose
  private String id;// Id
  @Expose
  private String name;// 名称
  @Expose
  private String ownerId;// 创建者Id
  @Expose
  private LocalDateTime createAt;// 创建时间
  @Expose
  private LocalDateTime modifyAt;// 最后修改时间

  public CategoryCard(Category category) {
    this.id = category.getId();
    this.name = category.getName();
    this.ownerId = category.getOwnerId();
    this.createAt = category.getCreateAt();
    this.modifyAt = category.getUpdateAt();
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getOwnerId() {
    return ownerId;
  }

  public void setOwnerId(String ownerId) {
    this.ownerId = ownerId;
  }

  public LocalDateTime getCreateAt() {
    return createAt;
  }

  public void setCreateAt(LocalDateTime createAt) {
    this.createAt = createAt;
  }

  public LocalDateTime getModifyAt() {
    return modifyAt;
  }

  public void setModifyAt(LocalDateTime modifyAt) {
    this.modifyAt = modifyAt;
  }
}
